package ${sourceBasePackage}.service;

import com.idp.common.model.PageModel;
import ${sourceBasePackage}.dto.${entityName}Dto;
import ${sourceBasePackage}.dto.${entityName}SearchDto;

/**
 * ${description}Service接口
 * @author ${author}
 */
public interface ${entityName}Service{
	
	/**
	 * 分页查询
	 * @param ${entityName?uncap_first}SearchDto
	 * @return
	 */
	PageModel<${entityName}Dto> findByPage(${entityName}SearchDto ${entityName?uncap_first}SearchDto);
	
	/**
	 * 通过id查询
	 * @param ${pkPropertyName}
	 * @return
	 */
	${entityName}Dto getById(${pkPropertyType} ${pkPropertyName});
	
	/**
	 * 新增
	 * @param ${entityName?uncap_first}Dto
	 */
	void add(${entityName}Dto ${entityName?uncap_first}Dto);
	
	/**
	 * 修改
	 * @param ${entityName?uncap_first}Dto
	 */
	void update(${entityName}Dto ${entityName?uncap_first}Dto);
	
	/**
	 * 删除
	 * @param ${pkPropertyName}
	 */
	void delete(${pkPropertyType} ${pkPropertyName});
	
}
